package org.sparkle.html.impl.widget;

import org.sparkle.html.api.AbstractWidget;
import org.sparkle.html.api.JFunction;

public class Droppable extends AbstractWidget {
	
	/**
	 * 
	 */
	private static final long serialVersionUID = 5520634800010658740L;

	public void onDrop(JFunction function){
		getScriptAttribute().put("drop", "function( event, ui ){"+function.getInnerFunction()+"}");
		refreshScript();
	}

}
